package org.dromara.common.core.utils

import io.github.oshai.kotlinlogging.KLogger
import io.github.oshai.kotlinlogging.KotlinLogging

val <T : Any> T.log: KLogger
    get() = KotlinLogging.logger(this::class.java.name)

val log = KotlinLogging.logger(Thread.currentThread().stackTrace[2].className)

val <T : Any> T.klog: KLogger
    get() = KotlinLogging.logger(this::class.java.name)
